package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.Bean;

import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;


@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.example.demo.mapper")
@EnableHystrixDashboard
@EnableCircuitBreaker
public class EurekaServerDbApplication {

	public static void main(String[] args) {
		SpringApplication.run(EurekaServerDbApplication.class, args);
		System.out.println("eureka--server --DB");
	}
	
}
